console.log("控制台输出");
//while(true){
//	var text = prompt("请输入用户名");
//	if(text!= "小玖"){
//		alert("输入错误")
//	}else{
//		alert("输入正确，已进入！")
//		break;	
//	}
//}
//var ipt = document.getElementById("xj")
//var btn = document.getElementById("xiaojiu")
//btn.onclick = function(){
//	if(ipt.value == '2968346697'){
//		alert("正确，恭喜小玖成功登录")
//		window.location.href="http://xiao_jiu.gitee.io/xiaojiu/"
//	}else{
//		alert("错误")
//	}
//}
//function sum(a,b){
//	var c = a + b;
//	return c;
//}
//console.log(sum(13,34));
//alert(sum(24,47))
//function sum1(a){
//	alert(a)
//}
//sum1(10);
//sum1(20)
//function sum1(a,b){
//	alert(a + b)
//}
//sum1(10,24)
//function sum3(a,b){
//	return a + b;
//}
//console.log(sum3(24,35));
//var text = document.getElementById("text")
//console.log(text)
//console.log(text.innerHTML)
//var text1 = document.querySelector("#text");
//console.log(text1);
//text1.innerHTML = "#小玖站起来了!";
//var text2 = document.querySelector(".text");
//console.log(text2);
//text2.innerHTML = ".小玖站起来吧！";
//var stu = {};
//stu.name = "小玖";
//stu.sex = "男";
//stu.age = "18";
//stu.say = function(){
//	return "我叫"+this.name+"，我今年"+stu.age+"岁了，我是个"+stu.sex+"孩子。";
//};
//console.log(stu.say())
////console.log(stu);
////console.log(stu.name);
////alert(stu.sex)
//console.log("我叫"+stu.name+"，我是个"+stu.sex+"孩子，我今年"+stu.age+"岁了。")
var form = document.getElementsByTagName('form')[0];
var body = document.getElementsByTagName('body')[0];
function color(a){
	form.style.display = 'none'
	body.style.transition = '2s';
//	document.querySelector("body").style.color= "#fff";
	document.querySelector("body").style.background= a;
}
function color3(){
	var r = document.getElementById('r').value;
	var g = document.getElementById('g').value;
	var b = document.getElementById('b').value;
	form.style.display = 'block';
	body.style.transition = '0.2s';
//	from.innerHTML = ""	
	document.querySelector("body").style.background = "rgb("+ r +","+ g +","+ b +")";
}
